package com.dragon.modules.yuegou.query.product;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.product.SkuEntity;
import com.dragon.modules.yuegou.enums.OwnerType;
import com.dragon.modules.yuegou.enums.SkuType;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * SKU 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-12-17 14:31:15
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class SkuQuery extends SkuEntity implements Query<SkuEntity> {

    /** ID查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** [全局枚举]商品类型：0-悦卡-YUECARD、1-套餐-PACKAGE、2-商户停车券-PARKCOUPON、3-积分停车券-POINTPARKCOUPON、4-实物-GOODS、5-积分商品-POINTGOODS、6-伪造商品-MOCK、7-奖品-PRIZE、8-优惠券-DISCOUNTCOUPON、9-礼包-GIFTBAG查询条件 */
	@JsonUnwrapped(prefix = "skuType")
	private Condition<SkuType> skuTypeCondition;

    /** [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件 */
	@JsonUnwrapped(prefix = "ownerType")
	private Condition<OwnerType> ownerTypeCondition;

    /** 集团ID查询条件 */
	@JsonUnwrapped(prefix = "groupId")
	private Condition<String> groupIdCondition;

    /** 商圈ID查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 商家ID查询条件 */
	@JsonUnwrapped(prefix = "merchantId")
	private Condition<String> merchantIdCondition;

    /** 商品ID查询条件 */
	@JsonUnwrapped(prefix = "spuId")
	private Condition<String> spuIdCondition;

    /** 商品标题查询条件 */
	@JsonUnwrapped(prefix = "title")
	private Condition<String> titleCondition;

    /** 主图查询条件 */
	@JsonUnwrapped(prefix = "mainImages")
	private Condition<String> mainImagesCondition;

    /** 商品图片 JSON存储查询条件 */
	@JsonUnwrapped(prefix = "images")
	private Condition<String> imagesCondition;

    /** 规格属性 JSON存储查询条件 */
	@JsonUnwrapped(prefix = "attrs")
	private Condition<String> attrsCondition;

    /** 商品编码查询条件 */
	@JsonUnwrapped(prefix = "code")
	private Condition<String> codeCondition;

    /** 原价查询条件 */
	@JsonUnwrapped(prefix = "originalPrice")
	private Condition<BigDecimal> originalPriceCondition;

    /** 价格查询条件 */
	@JsonUnwrapped(prefix = "price")
	private Condition<BigDecimal> priceCondition;

    /** 折扣价查询条件 */
	@JsonUnwrapped(prefix = "discountPrice")
	private Condition<BigDecimal> discountPriceCondition;

    /** 结算价查询条件 */
	@JsonUnwrapped(prefix = "settlementPrice")
	private Condition<BigDecimal> settlementPriceCondition;

    /** 积分查询条件 */
	@JsonUnwrapped(prefix = "point")
	private Condition<Integer> pointCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 更新人ID查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 更新时间查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 是否删除（1：已删除，0：未删除）查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 删除人ID查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

    /** 删除时间查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

    /** 每人最大购买数量查询条件 */
	@JsonUnwrapped(prefix = "maxBuyNum")
	private Condition<Integer> maxBuyNumCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public SkuQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public SkuQuery(SkuEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public SkuQuery(SkuQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.skuTypeCondition != null) {
			this.skuTypeCondition = other.skuTypeCondition.copy();
		}
		if(other.ownerTypeCondition != null) {
			this.ownerTypeCondition = other.ownerTypeCondition.copy();
		}
		if(other.groupIdCondition != null) {
			this.groupIdCondition = other.groupIdCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.merchantIdCondition != null) {
			this.merchantIdCondition = other.merchantIdCondition.copy();
		}
		if(other.spuIdCondition != null) {
			this.spuIdCondition = other.spuIdCondition.copy();
		}
		if(other.titleCondition != null) {
			this.titleCondition = other.titleCondition.copy();
		}
		if(other.mainImagesCondition != null) {
			this.mainImagesCondition = other.mainImagesCondition.copy();
		}
		if(other.imagesCondition != null) {
			this.imagesCondition = other.imagesCondition.copy();
		}
		if(other.attrsCondition != null) {
			this.attrsCondition = other.attrsCondition.copy();
		}
		if(other.codeCondition != null) {
			this.codeCondition = other.codeCondition.copy();
		}
		if(other.originalPriceCondition != null) {
			this.originalPriceCondition = other.originalPriceCondition.copy();
		}
		if(other.priceCondition != null) {
			this.priceCondition = other.priceCondition.copy();
		}
		this.setOther(other);
	}
	private void setOther(SkuQuery other){
		if(other.discountPriceCondition != null) {
			this.discountPriceCondition = other.discountPriceCondition.copy();
		}
		if(other.settlementPriceCondition != null) {
			this.settlementPriceCondition = other.settlementPriceCondition.copy();
		}
		if(other.pointCondition != null) {
			this.pointCondition = other.pointCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
		if(other.maxBuyNumCondition != null) {
			this.maxBuyNumCondition = other.maxBuyNumCondition.copy();
		}
	}

	@Override
	public QueryWrapper<SkuEntity> toQueryWrapper() {
		QueryWrapper<SkuEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (skuTypeCondition != null) {
			skuTypeCondition.toWrapper(wrapper, COL_SKU_TYPE);
		}
		if (ownerTypeCondition != null) {
			ownerTypeCondition.toWrapper(wrapper, COL_OWNER_TYPE);
		}
		if (groupIdCondition != null) {
			groupIdCondition.toWrapper(wrapper, COL_GROUP_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (merchantIdCondition != null) {
			merchantIdCondition.toWrapper(wrapper, COL_MERCHANT_ID);
		}
		if (spuIdCondition != null) {
			spuIdCondition.toWrapper(wrapper, COL_SPU_ID);
		}
		if (titleCondition != null) {
			titleCondition.toWrapper(wrapper, COL_TITLE);
		}
		if (mainImagesCondition != null) {
			mainImagesCondition.toWrapper(wrapper, COL_MAIN_IMAGES);
		}
		if (imagesCondition != null) {
			imagesCondition.toWrapper(wrapper, COL_IMAGES);
		}
		if (attrsCondition != null) {
			attrsCondition.toWrapper(wrapper, COL_ATTRS);
		}
		if (codeCondition != null) {
			codeCondition.toWrapper(wrapper, COL_CODE);
		}
		if (originalPriceCondition != null) {
			originalPriceCondition.toWrapper(wrapper, COL_ORIGINAL_PRICE);
		}
		if (priceCondition != null) {
			priceCondition.toWrapper(wrapper, COL_PRICE);
		}
		return getQueryWrapper(wrapper);
	}

	private QueryWrapper<SkuEntity> getQueryWrapper(QueryWrapper<SkuEntity> wrapper){
		if (discountPriceCondition != null) {
			discountPriceCondition.toWrapper(wrapper, COL_DISCOUNT_PRICE);
		}
		if (settlementPriceCondition != null) {
			settlementPriceCondition.toWrapper(wrapper, COL_SETTLEMENT_PRICE);
		}
		if (pointCondition != null) {
			pointCondition.toWrapper(wrapper, COL_POINT);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		if (maxBuyNumCondition != null) {
			maxBuyNumCondition.toWrapper(wrapper, COL_MAX_BUY_NUM);
		}
		return wrapper;
	}

	/**
	 * 构造并返回ID查询条件
	 * 
	 * @return idCondition ID查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取ID查询条件
	 * 
	 * @return idCondition ID查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置ID查询条件
	 * 
	 * @param idCondition ID查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回[全局枚举]商品类型：0-悦卡-YUECARD、1-套餐-PACKAGE、2-商户停车券-PARKCOUPON、3-积分停车券-POINTPARKCOUPON、4-实物-GOODS、5-积分商品-POINTGOODS、6-伪造商品-MOCK、7-奖品-PRIZE、8-优惠券-DISCOUNTCOUPON、9-礼包-GIFTBAG查询条件
	 * 
	 * @return skuTypeCondition [全局枚举]商品类型：0-悦卡-YUECARD、1-套餐-PACKAGE、2-商户停车券-PARKCOUPON、3-积分停车券-POINTPARKCOUPON、4-实物-GOODS、5-积分商品-POINTGOODS、6-伪造商品-MOCK、7-奖品-PRIZE、8-优惠券-DISCOUNTCOUPON、9-礼包-GIFTBAG查询条件
	 */
	public Condition<SkuType> skuType() {
		this.skuTypeCondition = new Condition<>();
		return this.skuTypeCondition;
	}
	
	/**
	 * 获取[全局枚举]商品类型：0-悦卡-YUECARD、1-套餐-PACKAGE、2-商户停车券-PARKCOUPON、3-积分停车券-POINTPARKCOUPON、4-实物-GOODS、5-积分商品-POINTGOODS、6-伪造商品-MOCK、7-奖品-PRIZE、8-优惠券-DISCOUNTCOUPON、9-礼包-GIFTBAG查询条件
	 * 
	 * @return skuTypeCondition [全局枚举]商品类型：0-悦卡-YUECARD、1-套餐-PACKAGE、2-商户停车券-PARKCOUPON、3-积分停车券-POINTPARKCOUPON、4-实物-GOODS、5-积分商品-POINTGOODS、6-伪造商品-MOCK、7-奖品-PRIZE、8-优惠券-DISCOUNTCOUPON、9-礼包-GIFTBAG查询条件
	 */
	public Condition<SkuType> getSkuTypeCondition() {
		return skuTypeCondition;
	}

	/**
	 * 设置[全局枚举]商品类型：0-悦卡-YUECARD、1-套餐-PACKAGE、2-商户停车券-PARKCOUPON、3-积分停车券-POINTPARKCOUPON、4-实物-GOODS、5-积分商品-POINTGOODS、6-伪造商品-MOCK、7-奖品-PRIZE、8-优惠券-DISCOUNTCOUPON、9-礼包-GIFTBAG查询条件
	 * 
	 * @param skuTypeCondition [全局枚举]商品类型：0-悦卡-YUECARD、1-套餐-PACKAGE、2-商户停车券-PARKCOUPON、3-积分停车券-POINTPARKCOUPON、4-实物-GOODS、5-积分商品-POINTGOODS、6-伪造商品-MOCK、7-奖品-PRIZE、8-优惠券-DISCOUNTCOUPON、9-礼包-GIFTBAG查询条件
	 */
	public void setSkuTypeCondition(Condition<SkuType> skuTypeCondition) {
		this.skuTypeCondition = skuTypeCondition;
	}

	/**
	 * 构造并返回[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 * 
	 * @return ownerTypeCondition [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 */
	public Condition<OwnerType> ownerType() {
		this.ownerTypeCondition = new Condition<>();
		return this.ownerTypeCondition;
	}
	
	/**
	 * 获取[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 * 
	 * @return ownerTypeCondition [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 */
	public Condition<OwnerType> getOwnerTypeCondition() {
		return ownerTypeCondition;
	}

	/**
	 * 设置[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 * 
	 * @param ownerTypeCondition [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 */
	public void setOwnerTypeCondition(Condition<OwnerType> ownerTypeCondition) {
		this.ownerTypeCondition = ownerTypeCondition;
	}

	/**
	 * 构造并返回集团ID查询条件
	 * 
	 * @return groupIdCondition 集团ID查询条件
	 */
	public Condition<String> groupId() {
		this.groupIdCondition = new Condition<>();
		return this.groupIdCondition;
	}
	
	/**
	 * 获取集团ID查询条件
	 * 
	 * @return groupIdCondition 集团ID查询条件
	 */
	public Condition<String> getGroupIdCondition() {
		return groupIdCondition;
	}

	/**
	 * 设置集团ID查询条件
	 * 
	 * @param groupIdCondition 集团ID查询条件
	 */
	public void setGroupIdCondition(Condition<String> groupIdCondition) {
		this.groupIdCondition = groupIdCondition;
	}

	/**
	 * 构造并返回商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈ID查询条件
	 * 
	 * @param busdIdCondition 商圈ID查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回商家ID查询条件
	 * 
	 * @return merchantIdCondition 商家ID查询条件
	 */
	public Condition<String> merchantId() {
		this.merchantIdCondition = new Condition<>();
		return this.merchantIdCondition;
	}
	
	/**
	 * 获取商家ID查询条件
	 * 
	 * @return merchantIdCondition 商家ID查询条件
	 */
	public Condition<String> getMerchantIdCondition() {
		return merchantIdCondition;
	}

	/**
	 * 设置商家ID查询条件
	 * 
	 * @param merchantIdCondition 商家ID查询条件
	 */
	public void setMerchantIdCondition(Condition<String> merchantIdCondition) {
		this.merchantIdCondition = merchantIdCondition;
	}

	/**
	 * 构造并返回商品ID查询条件
	 * 
	 * @return spuIdCondition 商品ID查询条件
	 */
	public Condition<String> spuId() {
		this.spuIdCondition = new Condition<>();
		return this.spuIdCondition;
	}
	
	/**
	 * 获取商品ID查询条件
	 * 
	 * @return spuIdCondition 商品ID查询条件
	 */
	public Condition<String> getSpuIdCondition() {
		return spuIdCondition;
	}

	/**
	 * 设置商品ID查询条件
	 * 
	 * @param spuIdCondition 商品ID查询条件
	 */
	public void setSpuIdCondition(Condition<String> spuIdCondition) {
		this.spuIdCondition = spuIdCondition;
	}

	/**
	 * 构造并返回商品标题查询条件
	 * 
	 * @return titleCondition 商品标题查询条件
	 */
	public Condition<String> title() {
		this.titleCondition = new Condition<>();
		return this.titleCondition;
	}
	
	/**
	 * 获取商品标题查询条件
	 * 
	 * @return titleCondition 商品标题查询条件
	 */
	public Condition<String> getTitleCondition() {
		return titleCondition;
	}

	/**
	 * 设置商品标题查询条件
	 * 
	 * @param titleCondition 商品标题查询条件
	 */
	public void setTitleCondition(Condition<String> titleCondition) {
		this.titleCondition = titleCondition;
	}

	/**
	 * 构造并返回主图查询条件
	 * 
	 * @return mainImagesCondition 主图查询条件
	 */
	public Condition<String> mainImages() {
		this.mainImagesCondition = new Condition<>();
		return this.mainImagesCondition;
	}
	
	/**
	 * 获取主图查询条件
	 * 
	 * @return mainImagesCondition 主图查询条件
	 */
	public Condition<String> getMainImagesCondition() {
		return mainImagesCondition;
	}

	/**
	 * 设置主图查询条件
	 * 
	 * @param mainImagesCondition 主图查询条件
	 */
	public void setMainImagesCondition(Condition<String> mainImagesCondition) {
		this.mainImagesCondition = mainImagesCondition;
	}

	/**
	 * 构造并返回商品图片 JSON存储查询条件
	 * 
	 * @return imagesCondition 商品图片 JSON存储查询条件
	 */
	public Condition<String> images() {
		this.imagesCondition = new Condition<>();
		return this.imagesCondition;
	}
	
	/**
	 * 获取商品图片 JSON存储查询条件
	 * 
	 * @return imagesCondition 商品图片 JSON存储查询条件
	 */
	public Condition<String> getImagesCondition() {
		return imagesCondition;
	}

	/**
	 * 设置商品图片 JSON存储查询条件
	 * 
	 * @param imagesCondition 商品图片 JSON存储查询条件
	 */
	public void setImagesCondition(Condition<String> imagesCondition) {
		this.imagesCondition = imagesCondition;
	}

	/**
	 * 构造并返回规格属性 JSON存储查询条件
	 * 
	 * @return attrsCondition 规格属性 JSON存储查询条件
	 */
	public Condition<String> attrs() {
		this.attrsCondition = new Condition<>();
		return this.attrsCondition;
	}
	
	/**
	 * 获取规格属性 JSON存储查询条件
	 * 
	 * @return attrsCondition 规格属性 JSON存储查询条件
	 */
	public Condition<String> getAttrsCondition() {
		return attrsCondition;
	}

	/**
	 * 设置规格属性 JSON存储查询条件
	 * 
	 * @param attrsCondition 规格属性 JSON存储查询条件
	 */
	public void setAttrsCondition(Condition<String> attrsCondition) {
		this.attrsCondition = attrsCondition;
	}

	/**
	 * 构造并返回商品编码查询条件
	 * 
	 * @return codeCondition 商品编码查询条件
	 */
	public Condition<String> code() {
		this.codeCondition = new Condition<>();
		return this.codeCondition;
	}
	
	/**
	 * 获取商品编码查询条件
	 * 
	 * @return codeCondition 商品编码查询条件
	 */
	public Condition<String> getCodeCondition() {
		return codeCondition;
	}

	/**
	 * 设置商品编码查询条件
	 * 
	 * @param codeCondition 商品编码查询条件
	 */
	public void setCodeCondition(Condition<String> codeCondition) {
		this.codeCondition = codeCondition;
	}

	/**
	 * 构造并返回原价查询条件
	 * 
	 * @return originalPriceCondition 原价查询条件
	 */
	public Condition<BigDecimal> originalPrice() {
		this.originalPriceCondition = new Condition<>();
		return this.originalPriceCondition;
	}
	
	/**
	 * 获取原价查询条件
	 * 
	 * @return originalPriceCondition 原价查询条件
	 */
	public Condition<BigDecimal> getOriginalPriceCondition() {
		return originalPriceCondition;
	}

	/**
	 * 设置原价查询条件
	 * 
	 * @param originalPriceCondition 原价查询条件
	 */
	public void setOriginalPriceCondition(Condition<BigDecimal> originalPriceCondition) {
		this.originalPriceCondition = originalPriceCondition;
	}

	/**
	 * 构造并返回价格查询条件
	 * 
	 * @return priceCondition 价格查询条件
	 */
	public Condition<BigDecimal> price() {
		this.priceCondition = new Condition<>();
		return this.priceCondition;
	}
	
	/**
	 * 获取价格查询条件
	 * 
	 * @return priceCondition 价格查询条件
	 */
	public Condition<BigDecimal> getPriceCondition() {
		return priceCondition;
	}

	/**
	 * 设置价格查询条件
	 * 
	 * @param priceCondition 价格查询条件
	 */
	public void setPriceCondition(Condition<BigDecimal> priceCondition) {
		this.priceCondition = priceCondition;
	}

	/**
	 * 构造并返回折扣价查询条件
	 * 
	 * @return discountPriceCondition 折扣价查询条件
	 */
	public Condition<BigDecimal> discountPrice() {
		this.discountPriceCondition = new Condition<>();
		return this.discountPriceCondition;
	}
	
	/**
	 * 获取折扣价查询条件
	 * 
	 * @return discountPriceCondition 折扣价查询条件
	 */
	public Condition<BigDecimal> getDiscountPriceCondition() {
		return discountPriceCondition;
	}

	/**
	 * 设置折扣价查询条件
	 * 
	 * @param discountPriceCondition 折扣价查询条件
	 */
	public void setDiscountPriceCondition(Condition<BigDecimal> discountPriceCondition) {
		this.discountPriceCondition = discountPriceCondition;
	}

	/**
	 * 构造并返回结算价查询条件
	 * 
	 * @return settlementPriceCondition 结算价查询条件
	 */
	public Condition<BigDecimal> settlementPrice() {
		this.settlementPriceCondition = new Condition<>();
		return this.settlementPriceCondition;
	}
	
	/**
	 * 获取结算价查询条件
	 * 
	 * @return settlementPriceCondition 结算价查询条件
	 */
	public Condition<BigDecimal> getSettlementPriceCondition() {
		return settlementPriceCondition;
	}

	/**
	 * 设置结算价查询条件
	 * 
	 * @param settlementPriceCondition 结算价查询条件
	 */
	public void setSettlementPriceCondition(Condition<BigDecimal> settlementPriceCondition) {
		this.settlementPriceCondition = settlementPriceCondition;
	}

	/**
	 * 构造并返回积分查询条件
	 * 
	 * @return pointCondition 积分查询条件
	 */
	public Condition<Integer> point() {
		this.pointCondition = new Condition<>();
		return this.pointCondition;
	}
	
	/**
	 * 获取积分查询条件
	 * 
	 * @return pointCondition 积分查询条件
	 */
	public Condition<Integer> getPointCondition() {
		return pointCondition;
	}

	/**
	 * 设置积分查询条件
	 * 
	 * @param pointCondition 积分查询条件
	 */
	public void setPointCondition(Condition<Integer> pointCondition) {
		this.pointCondition = pointCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回更新人ID查询条件
	 * 
	 * @return modifiedByCondition 更新人ID查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取更新人ID查询条件
	 * 
	 * @return modifiedByCondition 更新人ID查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置更新人ID查询条件
	 * 
	 * @param modifiedByCondition 更新人ID查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置更新时间查询条件
	 * 
	 * @param modifiedTimeCondition 更新时间查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回是否删除（1：已删除，0：未删除）查询条件
	 * 
	 * @return delCondition 是否删除（1：已删除，0：未删除）查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取是否删除（1：已删除，0：未删除）查询条件
	 * 
	 * @return delCondition 是否删除（1：已删除，0：未删除）查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置是否删除（1：已删除，0：未删除）查询条件
	 * 
	 * @param delCondition 是否删除（1：已删除，0：未删除）查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回删除人ID查询条件
	 * 
	 * @return delByCondition 删除人ID查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取删除人ID查询条件
	 * 
	 * @return delByCondition 删除人ID查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置删除人ID查询条件
	 * 
	 * @param delByCondition 删除人ID查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

	/**
	 * 构造并返回删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置删除时间查询条件
	 * 
	 * @param delTimeCondition 删除时间查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

	/**
	 * 构造并返回每人最大购买数量查询条件
	 * 
	 * @return maxBuyNumCondition 每人最大购买数量查询条件
	 */
	public Condition<Integer> maxBuyNum() {
		this.maxBuyNumCondition = new Condition<>();
		return this.maxBuyNumCondition;
	}
	
	/**
	 * 获取每人最大购买数量查询条件
	 * 
	 * @return maxBuyNumCondition 每人最大购买数量查询条件
	 */
	public Condition<Integer> getMaxBuyNumCondition() {
		return maxBuyNumCondition;
	}

	/**
	 * 设置每人最大购买数量查询条件
	 * 
	 * @param maxBuyNumCondition 每人最大购买数量查询条件
	 */
	public void setMaxBuyNumCondition(Condition<Integer> maxBuyNumCondition) {
		this.maxBuyNumCondition = maxBuyNumCondition;
	}

}
